import request from '@/utils/request'

// 查询培训授课记录列表
export function listTrainingRecord(query) {
  return request({
    url: '/business/TrainingRecord/list',
    method: 'get',
    params: query
  })
}

// 查询培训授课记录详细
export function getTrainingRecord(id) {
  return request({
    url: '/business/TrainingRecord/' + id,
    method: 'get'
  })
}

// 新增培训授课记录
export function addTrainingRecord(data) {
  return request({
    url: '/business/TrainingRecord',
    method: 'post',
    data: data
  })
}

// 修改培训授课记录
export function updateTrainingRecord(data) {
  return request({
    url: '/business/TrainingRecord',
    method: 'put',
    data: data
  })
}

// 删除培训授课记录
export function delTrainingRecord(id) {
  return request({
    url: '/business/TrainingRecord/' + id,
    method: 'delete'
  })
}
